//
// Created by Administrator on 24-8-23.
//

#ifndef RTOS_SHOWMSG_H
#define RTOS_SHOWMSG_H
#include "usart.h"
#include "main.h"
#include <string>

using namespace  std;

class ShowMSG {
public:
    ShowMSG();

    void setHUsartHandle(UART_HandleTypeDef &usart);

    void PrintMSG(std::string msg);

    // 打印 C 字符串的重载方法
    void PrintMSG(const char* msg);

private:
    UART_HandleTypeDef usart;
};


#endif //RTOS_SHOWMSG_H
